home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1996 February / PC Direct CD-ROM (February 1996).iso / software / claris / impact / disk12 / impact.rs_ / impact.rs / TEXT_192.txt < prev    next >
Encoding:
Text File  |  1995-08-28  |  428 b   |  11 lines

  1. RAND (Random)
  2. Generates a random number. If no argument is supplied, the return value is between 0 and 1.
  3.  
  4. Format: RAND ({number})
  5.  
  6. Argument:
  7. ΓÇó  number: Optional. If supplied, the return value is an integer between 1 and number.
  8.  
  9. Example:
  10. RAND ( ) * 5 returns 0.67, 4.57, 2.1, and so on.
  11. Shows that when no argument is provided, RAND returns a number between 0 and 1 and multiplies it by 5 to return real (fractional) numbers.